package com.woniuxy.usercoachassemble.controller;


import com.woniuxy.usercoachassemble.entity.Genre;
import com.woniuxy.usercoachassemble.service.GenreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * genre(瑜伽流派类型表) 前端控制器
 * </p>
 *
 * @author Lucas
 * @since 2020-07-16
 */
@RestController
@RequestMapping("genre")
public class GenreController {
//查询所有的流派
    @Autowired
    private GenreService genreServiceImpl;


    @RequestMapping("getallgenre")
    public List<Genre> getallgenre( ){
       return genreServiceImpl.list();
    }
}

